package ais.dcproject.service.impl;

import ais.dcproject.dao.ApplyDao;
import ais.dcproject.model.ApplyInfo;
import ais.dcproject.service.ApplyService;

public class ApplyServiceImpl implements ApplyService{
	
	private ApplyDao applyDao;
	
	public ApplyDao getApplyDao() {
		return applyDao;
	}

	public void setApplyDao(ApplyDao applyDao) {
		this.applyDao = applyDao;
	}

	public void addNewApplyInfo(ApplyInfo applyInfo) {
		applyDao.save(applyInfo);
	}

	public ApplyInfo getApplyInfo(String stuNum, String idCard) {
		return applyDao.get(stuNum, idCard);
	}

	public void updateApplyInfo(ApplyInfo applyInfo) {
		applyDao.update(applyInfo);
	}

}
